package com.yuanyefu.aop;

import org.springframework.aop.AfterReturningAdvice;

import java.lang.reflect.Method;

/**
 * Created by Administrator on 2017/9/17 0017.
 */
public class CreateAfterReturningAdvice implements AfterReturningAdvice {
    @Override
    public void afterReturning(Object returnValue, Method method, Object[] args, Object o1) throws Throwable {
        System.out.println("[CreateAfterReturningAdvice] New user created: " +args[0]);
    }
}
